// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App';
import VueRouter from 'vue-router';
import VueResource from 'vue-resource';
import Tgoods from './components/goods/goods';
import Tratings from './components/ratings/ratings';
import Tseller from './components/seller/seller';

Vue.config.productionTip = false;
Vue.use(VueRouter);
Vue.use(VueResource);

const routes = [
  { path: '/goods', component: Tgoods },
  { path: '/ratings', component: Tratings },
  { path: '/seller', component: Tseller }
];

const router = new VueRouter({
  linkActiveClass: "active",
  routes
});

new Vue({
  router:router,
  render: h => h(App)
}).$mount('#app');

//router.push('/goods');